package Pantallas;

import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.ButtonGroup;
import javax.swing.JButton;

import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTable;
import javax.swing.JTextField;
import com.swtdesigner.SwingResourceManager;

public class ConsultarCliente extends JDialog {

	private JButton salirButton;
	private JButton cancelarButton;
	private JButton aceptarButton;
	private JTable table_1;
	private JScrollPane scrollPane_1;
	private JButton buscarButton;
	private JRadioButton nombreRadioButton;
	private JLabel label_2;
	private JTextField textField_1;
	private JRadioButton dniRadioButton;
	private JLabel label_1;
	private JSeparator separator_1;
	private JLabel consultarEmpleadoLabel;
	private ButtonGroup buttonGroup = new ButtonGroup();
	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String args[]) {
		try {
			ConsultarCliente dialog = new ConsultarCliente();
			dialog.addWindowListener(new WindowAdapter() {
				public void windowClosing(WindowEvent e) {
					System.exit(0);
				}
			});
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog
	 */
	public ConsultarCliente() {
		super();
		setIconImage(SwingResourceManager.getImage(ConsultarCliente.class, "/Iconos/viewmag-000.png"));
		setTitle("Consultar Cliente");
		getContentPane().setLayout(null);
		setBounds(100, 100, 446, 351);

		consultarEmpleadoLabel = new JLabel();
		consultarEmpleadoLabel.setFont(new Font("Dialog", Font.BOLD | Font.ITALIC, 14));
		consultarEmpleadoLabel.setText("Consultar Cliente");
		consultarEmpleadoLabel.setBounds(10, 25, 151, 18);
		getContentPane().add(consultarEmpleadoLabel);

		separator_1 = new JSeparator();
		separator_1.setBounds(11, 54, 416, 11);
		getContentPane().add(separator_1);

		label_1 = new JLabel();
		label_1.setIcon(SwingResourceManager.getIcon(ConsultarCliente.class, "/Iconos/viewmag-002.png"));
		label_1.setBounds(220, 10, 115, 35);
		getContentPane().add(label_1);

		dniRadioButton = new JRadioButton();
		dniRadioButton.setSelected(true);
		dniRadioButton.setFont(new Font("Dialog", Font.BOLD, 12));
		dniRadioButton.setText("DNI");
		dniRadioButton.setBounds(20, 65, 92, 23);
		getContentPane().add(dniRadioButton);

		textField_1 = new JTextField();
		textField_1.setBounds(20, 100, 204, 20);
		getContentPane().add(textField_1);

		nombreRadioButton = new JRadioButton();
		nombreRadioButton.setFont(new Font("Dialog", Font.BOLD, 12));
		nombreRadioButton.setText("Nombre");
		nombreRadioButton.setBounds(135, 66, 113, 23);
		getContentPane().add(nombreRadioButton);

		buscarButton = new JButton();
		buscarButton.setIcon(SwingResourceManager.getIcon(ConsultarCliente.class, "/Iconos/viewmag-001.png"));
		buscarButton.setBounds(243, 95, 57, 33);
		getContentPane().add(buscarButton);

		scrollPane_1 = new JScrollPane();
		scrollPane_1.setBounds(10, 156, 417, 113);
		getContentPane().add(scrollPane_1);

		table_1 = new JTable();
		scrollPane_1.setViewportView(table_1);

		aceptarButton = new JButton();
		aceptarButton.setIcon(SwingResourceManager.getIcon(ConsultarCliente.class, "/Iconos/button_ok-001.png"));
		aceptarButton.setFont(new Font("Dialog", Font.BOLD, 12));
		aceptarButton.setBounds(135, 275, 52, 32);
		getContentPane().add(aceptarButton);

		cancelarButton = new JButton();
		cancelarButton.setIcon(SwingResourceManager.getIcon(ConsultarCliente.class, "/Iconos/button_cancel-001.png"));
		cancelarButton.setFont(new Font("Dialog", Font.BOLD, 12));
		cancelarButton.setBounds(218, 275, 52, 32);
		getContentPane().add(cancelarButton);

		label_2 = new JLabel();
		label_2.setIcon(SwingResourceManager.getIcon(ConsultarCliente.class, "/Iconos/icono_botom_nuevo_cliente.PNG"));
		label_2.setBounds(167, 0, 71, 55);
		getContentPane().add(label_2);

		salirButton = new JButton();
		salirButton.setIcon(SwingResourceManager.getIcon(ConsultarCliente.class, "/Iconos/back-001.png"));
		salirButton.setBounds(375, 275, 52, 32);
		getContentPane().add(salirButton);
		//
	}

}
